package day04;

import java.util.Arrays;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/11
 */
public class TwoArrayChange {
    public static void main(String[] args) {
        char [][] arr = {{'床','前','明','月','光','，'},
                         {'疑','是','地','上','霜','，'},
                         {'举','头','望','明','月','，'},
                         {'低','头','思','故','乡','。'}};

        char [][] arrChange = new char[6][4];

        for (int i = 0; i < 6; i++) {
            for (int j = 0; j < 4; j++) {
                arrChange[i][3 - j] = arr[j][i];
            }
        }

        for (int i = 0; i < 6; i++) {
            for (int j = 0; j < 4; j++) {
                System.out.print(arrChange[i][j] + " ");
            }
            System.out.println();

        }
    }
}
